package org.tgcloud.group.repository;

import org.apache.ibatis.annotations.Param;
import org.tgcloud.group.entity.MjDepart;

import java.util.List;

/**
 * @Author: zhy
 * @Created: 2025-05-09-下午1:51
 * @Description: ${description}
 */
public interface MjDepartMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(MjDepart record);

    int insertSelective(MjDepart record);

    MjDepart selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(MjDepart record);

    int updateByPrimaryKey(MjDepart record);

    List<MjDepart> selectListByDepartName(@Param("departName") String departName);

    int updateMsgById(@Param("id") Integer id, @Param("departName") String departName,
                      @Param("managerUserIds") String managerUserIds, @Param("pid") Integer pid,
                      @Param("sort") Integer sort);

    int updateStatusById(@Param("id") Integer id, @Param("status") Short status);

    List<MjDepart> selectListByIds(@Param("ids") String[] departIds);

    List<String> selectManagerUserListByIds(@Param("ids") String[] split);

    String getNameById(@Param("pid") Integer pid);
}